/**
 * @file    hal_rf433.h
 * @author  Azolla (1228449928@qq.com)
 * @brief   
 * @version 0.1
 * @date    2023-04-12
 * 
 * @copyright Copyright (c) 2023
 * */
#ifndef __HAL_RF433_H__
#define __HAL_RF433_H__

typedef struct {
    uint16_t addr;   
    union {
        struct {
            uint8_t val     :   4;
            uint8_t fixed   :   4;
        };
        uint8_t value;
    };
} rf_code_t;

 
typedef void (*rf_cb_func_t)(void *, uint8_t );

void hal_rf433_init(rf_cb_func_t cb_func);

#endif /*__APP_RF433_H__ END.*/